package org.jeecg.modules.flower.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.flower.entity.FlowerStorehouseDetail;
import org.jeecg.modules.flower.entity.FlowerStorehouse;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 仓库主表
 * @Author: jeecg-boot
 * @Date:   2022-07-15
 * @Version: V1.0
 */
public interface IFlowerStorehouseService extends IService<FlowerStorehouse> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(FlowerStorehouse flowerStorehouse,List<FlowerStorehouseDetail> flowerStorehouseDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(FlowerStorehouse flowerStorehouse,List<FlowerStorehouseDetail> flowerStorehouseDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	/**
	 *
	 * 根据人员id查询仓库
	 * @param personid
	 * @return
	 */
	List<FlowerStorehouse> queryListByPsn(  String personid  ,String baseid);
}
